package io.github.l86400.core.exception;

/**
 * @author 86400
 * @since 2021/12/21 17:22
 */
public interface ExceptionEnum {
    String FRAMEWORK_PREFIX = "1";
    /**
     * 10XXXXXX framework-core
     */
    String FRAMEWORK_CORE_PREFIX = FRAMEWORK_PREFIX + "0";
    /**
     * 11XXXXXX framework-util
     */
    String FRAMEWORK_UTIL_PREFIX = FRAMEWORK_PREFIX + "1";
    /**
     * 12XXXXXX framework-component
     */
    String FRAMEWORK_COMPONENT_PREFIX = FRAMEWORK_PREFIX + "2";
    /**
     * 120XXXXX framework-component-selenium
     */
    String FRAMEWORK_COMPONENT_SELENIUM_PREFIX = FRAMEWORK_COMPONENT_PREFIX + "0";
    /**
     * 1200XXXX framework-component-selenium-core
     */
    String FRAMEWORK_COMPONENT_SELENIUM_CORE_PREFIX = FRAMEWORK_COMPONENT_SELENIUM_PREFIX + "0";
    /**
     * 1201XXXX framework-component-selenium-starter
     */
    String FRAMEWORK_COMPONENT_SELENIUM_STARTER_PREFIX = FRAMEWORK_COMPONENT_SELENIUM_PREFIX + "1";

    /**
     * 异常码 6位
     * 0XXXXX 待分配
     *
     * @return {@code code}
     */
    String getCode();

    String getMessage();

    String getShowMessage();
}
